--- import Comment from '../../components/Comment.astro'; import For from '../../components/For.astro'; import Show from '../../components/Show.astro'; import Layout from '../../layouts/Layout.astro'; import fetchAPI from '../../lib/api'; import type { IComment, IStory } from '../../types.js'; const { id } = Astro.params as { id: string }; const story = (await fetchAPI(`item/${id}`)) as IStory; ---

{story.title}

({story.domain})

{story.points} points | by {story.user}  {story.time_ago}

{story.comments_count ? story.comments_count + ' comments' : 'No comments yet.'}

    {(comment: IComment) => }